#include "DataStructure/Input/Constraint/SPCADDData.h"

using namespace SG::DataStructure;

/// @brief 判断两个SPCADData是否相等
/// @param a
/// @param b
/// @return
bool SG::DataStructure::FEM::operator== (const SPCADDData& a, const SPCADDData& b)
{
    if (a.m_sId != b.m_sId)
    {
        return false;
    }
    if (a.m_subSets != b.m_subSets)
    {
        return false;
    }
    return true;
}

/// @brief 比较两个SPCADData大小
/// @param SGDataA
/// @param SGDataB
/// @return
bool FEM::operator< (const SPCADDData& SGDataA, const SPCADDData& SGDataB)
{
    return SGDataA.m_sId < SGDataB.m_sId;
}